package org.bonorsoft.common.exception;


import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/** 功能描述:404异常处理
 *
 * @vison: 1.0.0
 * @Author: WilliamYe
 * @Date: 2020/11/17 16:30
 */
@Controller
public class HttpErrorController implements ErrorController {

    private static final String ERROR_PATH = "/error";

    @RequestMapping(value = ERROR_PATH)
    public String handleError() {
        return "errorFilter/404";
    }

    @Override
    public String getErrorPath() {
        return ERROR_PATH;
    }

}
